package com.hsj.controller.utils;

import com.hsj.domain.Book;
import lombok.Data;

@Data
public class R {

    private Boolean flag;  //执行是否成功
    private Object data;   //存放数据

    private String msg;
    public R() {
    }

    public R(boolean flag) {
        this.flag = flag;
    }

    public R(boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }

    public R( String msg) {
        this.flag = false;
        this.msg = msg;
    }

}
